<!doctype html>
<html>
<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width initial-scale=1'>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <link rel="stylesheet" href="markdown.css?v=1571501404328"/>
    <title>异步返回信息测试</title>
</head>
<body>
<div class="markdown-body">
    <h1>异步返回信息测试</h1>
<h2>返回Callable&lt;CommonResult&gt;</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/testCallable</code></p>
<p><strong>Type:</strong> <code>GET</code></p>
<p><strong>Content-Type:</strong> <code>application/x-www-form-urlencoded</code></p>
<p><strong>Description:</strong> 返回Callable&lt;CommonResult&gt;</p>
<p><strong>Request-example:</strong></p>
<pre><code>http://localhost:8080/testCallable
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:{
		&quot;waring&quot;:&quot;You may have used non-display generics.&quot;
	},
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>
<h2>返回DeferredResult&lt;CommonResult&lt;String&gt;&gt;</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/async-deferredresult</code></p>
<p><strong>Type:</strong> <code>GET</code></p>
<p><strong>Content-Type:</strong> <code>application/x-www-form-urlencoded</code></p>
<p><strong>Description:</strong> 返回DeferredResult&lt;CommonResult&lt;String&gt;&gt;</p>
<p><strong>Request-example:</strong></p>
<pre><code>http://localhost:8080/async-deferredresult
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:&quot;zrd9qw&quot;,
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>
<h2>返回WebAsyncTask&lt;CommonResult&gt;</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/WebAsync/timeout</code></p>
<p><strong>Type:</strong> <code>GET</code></p>
<p><strong>Content-Type:</strong> <code>application/x-www-form-urlencoded</code></p>
<p><strong>Description:</strong> 返回WebAsyncTask&lt;CommonResult&gt;</p>
<p><strong>Request-example:</strong></p>
<pre><code>http://localhost:8080/WebAsync/timeout
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:{
		&quot;waring&quot;:&quot;You may have used non-display generics.&quot;
	},
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>
<h2>返回Future&lt;CommonResult&lt;String&gt;&gt;</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/future</code></p>
<p><strong>Type:</strong> <code>GET</code></p>
<p><strong>Content-Type:</strong> <code>application/x-www-form-urlencoded</code></p>
<p><strong>Description:</strong> 返回Future&lt;CommonResult&lt;String&gt;&gt;</p>
<p><strong>Request-example:</strong></p>
<pre><code>http://localhost:8080/future
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:&quot;cax43h&quot;,
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>
<h2>返回CompletableFuture&lt;CommonResult&lt;String&gt;&gt;</h2>
<p><strong>URL:</strong> <code>http://localhost:8080/completableFuture</code></p>
<p><strong>Type:</strong> <code>GET</code></p>
<p><strong>Content-Type:</strong> <code>application/x-www-form-urlencoded</code></p>
<p><strong>Description:</strong> 返回CompletableFuture&lt;CommonResult&lt;String&gt;&gt;</p>
<p><strong>Request-example:</strong></p>
<pre><code>http://localhost:8080/completableFuture
</code></pre>
<p><strong>Response-fields:</strong></p>
<table>
<thead>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Since</th></tr>
</thead>
<tbody>
<tr><td>success</td><td>boolean</td><td>是否成功</td><td>-</td></tr>
<tr><td>message</td><td>string</td><td>响应信息</td><td>-</td></tr>
<tr><td>data</td><td>object</td><td>响应数据</td><td>-</td></tr>
<tr><td>code</td><td>string</td><td>错误代码</td><td>-</td></tr>
<tr><td>timestamp</td><td>string</td><td>响应时间</td><td>-</td></tr>
</tbody>
</table>
<p><strong>Response-example:</strong></p>
<pre><code>{
	&quot;success&quot;:true,
	&quot;message&quot;:&quot;success&quot;,
	&quot;data&quot;:&quot;a8pwb1&quot;,
	&quot;code&quot;:&quot;26511&quot;,
	&quot;timestamp&quot;:&quot;2019-10-20 00:10:06&quot;
}
</code></pre>

    <footer class="page-footer">
        <span class="copyright">Generated by smart-doc at 2019-10-20 00:10:04</span>
        <span class="footer-modification">Suggestions, contact, support and error reporting on
            <a href="https://gitee.com/sunyurepository/smart-doc" target="_blank">Gitee</a> or
            <a href="https://github.com/shalousun/smart-doc" target="_blank">Github</a>
        </span>
    </footer>
</div>
</body>
</html>